'use strict';

stareal
    .controller("MyAidRecordController", function ($scope, $stateParams, $api, $state,$lazyLoader,$rootScope,localStorageService) {
        $scope.comments = new $lazyLoader("app/view/footprint", {},true);
        $scope.comments.nextPage();
        var h=$(window).height()-1.4*parseFloat(document.documentElement.style.fontSize)+"px";
        $("#wrapper_container").height(h);
        $scope.getAbtainAidBar=function(){//app/activity/abtainAidBar  //获取应援
            // 分类列表
            $api.get("app/activity/abtainAidBar",{}, true)
                .then(function(ret){
                    $scope.abtainAidBar=ret;
                });
        }
        if(!localStorageService.get('token')){
            var data={};
            data.count=0;
            $scope.abtainAidBar=data;
        }else{
            $scope.getAbtainAidBar();
        }
    });